# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: domanov <domanov@gmail.com>

pkgname=ditaa
pkgver=0.9
_pkgver=${pkgver/./_}
pkgrel=1
pkgdesc="Java utility to convert diagrams drawn using ascii art to bitmap"
arch=('any')
url="http://ditaa.sourceforge.net/"
license=('GPL')
depends=('java-environment')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname$_pkgver.zip"
	ditaa.sh)
md5sums=('23f2e5ede60ef7763309c08addca071a'
         'f49b726595c7b85aa004da042094b0e2')

package() {
  cd "$srcdir"
  install -Dm755 "$pkgname$_pkgver.jar" "$pkgdir/usr/share/java/$pkgname/ditaa-$_pkgver.jar"
  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  sed -i "s/VERSION/$_pkgver/" "$pkgdir/usr/bin/$pkgname"
}

